import { Suspense } from 'react'
import { HashRouter as Router } from 'react-router-dom'
import { LoadingOutlined } from "@ant-design/icons";
import RouterView from './routes'
export default function App() {
	return (
		<Router>
			<Suspense fallback={
				<div className='flex flex-jc-c flex-ai-c' style={{ width: '100vw', height: '100vh' }}>
					<div className='flex'>
						<LoadingOutlined style={{ width: '100px', height: '100px', color: '#fff' }} />
						<div style={{ color: '#fff' }} >加载中...</div>
					</div>
				</div>
			}>
				<RouterView />
			</Suspense>
		</Router>
	)
}
